package com.jack006.stock.mapper;

import com.jack006.my.mapper.MyMapper;
import com.jack006.pojo.StockNowDetail;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StockNowDetailMapper extends MyMapper<StockNowDetail> {

    /**
     * 获取最高价格区间
     * @param code
     * @param currentDateString
     * @param highPrice
     * @return
     */
    List<StockNowDetail> getHighDayDetail(String code, String currentDateString,Double highPrice);

    /**
     * 获取最低价格区间
     * @param code
     * @param currentDateString
     * @param lowPrice
     * @return
     */
    List<StockNowDetail> getLowDayDetail(String code, String currentDateString,  Double lowPrice);
}